#include "qlight4button.h"

QLight4Button::QLight4Button(QWidget *parent) : QPushButton(parent)
{

}
//void QLight4Button::mousePressEvent(QMouseEvent *event)
//{
//    QPixmap pixmap(":/Image/Util/light42.png");
//     this->setIcon(pixmap);
//    QSize size(70,70);
//    this->setIconSize(size);
//    QPushButton::mouseMoveEvent(event);
//}

//void QLight4Button::mouseReleaseEvent(QMouseEvent *event)
//{
//    QPixmap pixmap(":/Image/Util/light4.png");
//     this->setIcon(pixmap);
//    QSize size(50,50);
//    this->setIconSize(size);
//    QPushButton::mouseMoveEvent(event);
//}

void QLight4Button::enterEvent(QEvent *event)
{
    QPixmap pixmap(":/Image/Util/light42.png");
     this->setIcon(pixmap);
    QSize size(60,60);
    this->setIconSize(size);
    QPushButton::enterEvent(event);
}

void QLight4Button::leaveEvent(QEvent *event)
{
    QPixmap pixmap(":/Image/Util/light4.png");
     this->setIcon(pixmap);
    QSize size(50,50);
    this->setIconSize(size);
    QPushButton::leaveEvent(event);
}
